package cn.ibizlab.codegen;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.kohsuke.args4j.CmdLineException;
import org.kohsuke.args4j.CmdLineParser;

public class GeneratorApplication {

	private static final Log log = LogFactory.getLog(GeneratorApplication.class);
	
	public static void main(String[] args) {

		EmbedGenerator generator = new EmbedGenerator(null);
		CmdLineParser cmdLineParser = new CmdLineParser(generator.getGeneratorParam());
		try {
			cmdLineParser.parseArgument(args);
			generator.generate();
		} catch (CmdLineException e) {
			cmdLineParser.printUsage(System.out);
			throw new RuntimeException(e);
		}
		catch (Exception ex) {
			throw ex;
		}

		
	}

}
